package com.easy.dao;

import com.easy.bean.Category;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface CategoryDao {
    int add(@Param("category") Category category);
    int delete(@Param("id") int id);
    int edit(@Param("category") Category category);
    Category getByID(@Param("id") int id);
    List<Category> getList(@Param("page") Page page, @Param("text") String text);
    List<Category> getChildren(@Param("id") int id);
    int getCount(@Param("text") String text);


}
